package net.xxcxcxcx.xc_enhancedmob.skills.basics.individual.mystery;

import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.mob.MobEntity;
import net.minecraft.nbt.NbtCompound;
import net.xxcxcxcx.xc_enhancedmob.config.skill.SkillConfig;
import net.xxcxcxcx.xc_enhancedmob.skills.BaseSkill;
import net.xxcxcxcx.xc_enhancedmob.skills.Ref;
import net.xxcxcxcx.xc_enhancedmob.skills.SkillRarity;

public class HypertherapySkill extends BaseSkill {
    public HypertherapySkill(int level){super(level);}

    public HypertherapySkill(NbtCompound nbtCompound){super(nbtCompound);}

    public HypertherapySkill(){
    }

    @Override
    public SkillConfig getDefaultConfig() {
        SkillConfig skillConfig = super.getDefaultConfig();
        skillConfig.setMessage(getConfigMessage(skillConfig));
        return skillConfig;
    }

    @Override
    public String getConfigMessage(SkillConfig skillConfig) {
        return "过疗：生命恢复效果提升。";
    }

    public SkillRarity getSkillRarity(){return SkillRarity.Mystery;}

    public boolean onTreat(MobEntity mobEntity, Ref<Float> amount) {
        amount.setValue(amount.getValue()+(float) getSkillLevel());
        return true;
    }


}
